home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 September / CHIP Eylül 1998.iso / Slackwar / contents / scripts / emacspeak-dt < prev    next >
Text File  |  1997-06-06  |  429b  |  18 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. # original config file was missing the `$' characters on the variable names
  5. # insert them if necessary
  6. if [ -f /etc/emacspeak.conf ]; then
  7.     sed 's/^if  *\[  *"DTK/if \[ "$DTK/' /etc/emacspeak.conf >/etc/tmp.$$
  8.     mv /etc/tmp.$$ /etc/emacspeak.conf
  9.     if grep 'export' /etc/emacspeak.conf >/dev/null; then
  10.     true;
  11.     else
  12.     cat >>/etc/emacspeak.conf <<\EOF
  13. export DTK_PROGRAM DTK_PORT DTK_TCL
  14. EOF
  15.     fi
  16. fi
  17.  
  18.